package com.fashiontextile.user.mapper;

import com.fashiontextile.user.entity.Comment;
import com.fashiontextile.user.entity.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {
    Integer insertArticle(Article article);

    Long selectUidByAid(Long aid);

    Boolean selectArticleStatus(Long aid);

    Integer upDateArticleByAid(Article article);

    Integer deleteArticle(Long aid);

    List<Article> selectNewArticle();

    List<Article> selectArticleByType(Long dcid);

    List<Article> getArticleByUid(Long uid);

    Article getArticleByAid(Long aid);

    Integer insertComment(Comment comment);

    List<Comment> selectAllParantComment(Long ctid);

    List<Comment> selectAllChildrenComment(Long ctid);
}
